<template>
  <div>
    <van-list :finished="finished" finished-text="没有更多了" @load="onLoad">
      <van-cell
        v-for="item in searchList"
        :key="item"
        :title="item"
        @click="handelSearchListClick(item)"
      />
    </van-list>
  </div>
</template>

<script>
export default {
  props: {
    searchList: {
      type: Array,
      defalut() {
        return []
      }
    }
  },
  data() {
    return {
      loading: false,
      finished: true
    }
  },
  created() {},
  methods: {
    onLoad() {},
    handelSearchListClick(value) {
      this.$emit('handelSearchListClick', value)
    }
  }
}
</script>

<style lang="less" scoped></style>
